#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>

using namespace std;

int main()
{
	string s1, s2, ret;
	int pos1 = 0, pos2 = 0;
	int sum = 0, tmp = 0;

	cin >> s1 >> s2;
	reverse(s1.begin(), s1.end());
	reverse(s2.begin(), s2.end());

	while (pos1 < s1.size() || pos2 < s2.size() || sum)
	{
		if (pos1 < s1.size())
		{
			sum += s1[pos1] - '0';
			pos1++;
		}
		if (pos2 < s2.size())
		{
			sum += s2[pos2] - '0';
			pos2++;
		}
		tmp = sum % 10;
		ret += (tmp + '0');
		sum /= 10;
	}

	reverse(ret.begin(), ret.end());
	cout << ret << endl;

	return 0;
}